package org.pro.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 定义属性文件
 * @author luoqiz
 *
 */
@ConfigurationProperties(prefix = "luoqiz.security")
public class SecurityProperties {

	// 设置登录数据返回方式
	private String loginType = "json";

	// 若是浏览器则获取相应的设置
	private BrowserProperties browser = new BrowserProperties();

	// 验证码相关配置
	private ValidateCodeProperties validateCode=new ValidateCodeProperties();

	//社交登录的配置
	private SocialProperties socialProperties=new SocialProperties();
	
	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public BrowserProperties getBrowser() {
		return browser;
	}

	public void setBrowser(BrowserProperties browser) {
		this.browser = browser;
	}

	public ValidateCodeProperties getValidateCode() {
		return validateCode;
	}

	public void setValidateCode(ValidateCodeProperties validateCode) {
		this.validateCode = validateCode;
	}

	public SocialProperties getSocialProperties() {
		return socialProperties;
	}

	public void setSocialProperties(SocialProperties socialProperties) {
		this.socialProperties = socialProperties;
	}
}
